SGSetVideoRect
TheSGSetVideoRect
function allows you to specify a part of the source video image that is to be captured by the sequence grabber component. This rectangle must reside within the boundaries of the source video boundary rectangle. You obtain the dimensions of the source video boundary rectangle by calling theSGGetSrcVideoBounds
function, described in the previous section. If you do not use this function to set a source rectangle, the sequence grabber component captures the entire video image, as defined by the source video boundary rectangle.
pascal ComponentResult SGSetVideoRect (SGChannel c, Rect *r);
c
- Specifies the reference that identifies the channel for this operation. You obtain this reference from the
SGNewChannel
function, described on page 5-29.r
- Contains a pointer to the dimensions of the rectangle that defines the portion of the source video image to be captured. This rectangle must lie within the boundaries of the source video boundary rectangle, which you can obtain by calling the
SGGetSrcVideoBounds
function.DESCRIPTION
For video channel components that receive their data from video digitizer components, this function sets the video digitizer component's digitizer rectangle. See the chapter "Video Digitizer Components" in this book for information about video digitizer components.You cannot call this function during a record operation.
RESULT CODES
cantDoThatInCurrentMode -9402 Request invalid in current mode notEnoughMemoryToGrab -9403 Insufficient memory for record operation
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help